/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.bff.bjj.dao;

import com.bff.bjj.musicobjects.BJJPlayableItem;
import com.bff.bjj.musicobjects.BJJSong;

/**
 *
 * @author bfindeisen
 */
public interface ItemDao {
    /**
     * Returns the {@link BJJSong} for a song id. Returns <code>null</code> if
     * there is not a match. This will return null for remote streams.
     *
     * @param url the song url
     * @return the {@link BJJSong}
     */
    public BJJPlayableItem lookupItemByUrl(String url);
    /**
     * Returns the {@link BJJSong} for a song id. Returns <code>null</code> if
     * there is not a match.
     *
     * @param songId the song id
     * @return the {@link BJJSong}
     */
    public BJJPlayableItem lookupItem(String songId);
}
